local difei = fk.CreateSkill {
  name = "tyj_heg__difei",
}
local H = require "packages.ol_hegemony.util"
local U = require "packages.utility.utility"
Fk:loadTranslationTable {
  ["tyj_heg__difei"] = "抵诽",
  [":tyj_heg__difei"] = "当你受到伤害后，你可以叠置。当你平置后，你回复1点体力。",

  ["$tyj_heg__difei1"] = "称病不见，待其自露马脚。",
  ["$tyj_heg__difei2"] = "孙氏之诽，伤不到我分毫。",
}
difei:addEffect(fk.Damaged, {
  anim_type = "masochism",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(difei.name)
  end,
  on_use = function(self, event, target, player, data)
    player:turnOver()
  end,
})
difei:addEffect(fk.TurnedOver, {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(difei.name) and not target.dead and target.faceup and player:isWounded()
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:recover{
        who = player,
        num = 1,
        recoverBy = player,
        skillName = difei.name,
      }
  end,
})
return difei